	var teamsOption = {

		logoPath : "img/logo/",				//队伍logo所在目录
		logoSize : {						//logo尺寸(单位:像素)
			w : 300,
			h : 300
		},

		serviceNum : 6,

		serviceData : [
			"flag-robot",
			"meng",
			"missle", 
			"oj",
			"msgstore",
			"mailbox"
		],

		teamNum : 13,			//队伍数量
		
		teamData :[
			{
			    number : 1,        //队伍编号(从1开始递增)
			    name : "1",      //队伍名称
			    logo : "1.png"   //队伍logo图片名称
			},
			{
			    number : 2,
			    name : "2",
			    logo : "2.png"
			},
			{
			    number : 3,
			    name : "3",
			    logo : "3.png"
			},
			{
			    number : 4,
			    name : "4",
			    logo : "4.png"
			},
			{
			    number : 5,
			    name : "5",
			    logo : "5.png"
			},
			{
			    number : 6,
			    name : "6",
			    logo : "6.png"
			},
			{
			    number : 7,
			    name : "7",
			    logo : "7.png"
			},
			{
			    number : 8,
			    name : "8",
			    logo : "8.png"
			},
			{
			    number : 9,
			    name : "9",
			    logo : "9.png"
			},
			{
			    number : 10,
			    name : "10",
			    logo : "10.png"
			},
			{
			    number : 11,
			    name : "11",
			    logo : "11.png"
			},
			{
			    number : 12,
			    name : "12",
			    logo : "12.png"
			},
			{
			    number : 13,
			    name : "13",
			    logo : "13.png"
			},
			{
			    number : 14,
			    name : "NPC",
			    logo : "13.png"
			},
			{
			    number : 15,
			    name : "NPC",
			    logo : "13.png"
			},
			{
			    number : 16,
			    name : "NPC",
			    logo : "13.png"
			},
			{
			    number : 17,
			    name : "NPC",
			    logo : "13.png"
			},
			{
			    number : 18,
			    name : "NPC",
			    logo : "13.png"
			},
			{
			    number : 19,
			    name : "NPC",
			    logo : "13.png"
			},
			{
			    number : 20,
			    name : "NPC",
			    logo : "13.png"
			},
			{
			    number : 21,
			    name : "NPC",
			    logo : "13.png"
			},
			{
			    number : 22,
			    name : "NPC",
			    logo : "13.png"
			},
			{
			    number : 23,
			    name : "NPC",
			    logo : "13.png"
			},
			{
			    number : 24,
			    name : "NPC",
			    logo : "13.png"
			}
		],

		typeData : [
		    "normal" ,
    		"submission"
		]
	};


function getNumberByTeamName( name ){
	var name = name.toLowerCase();
	for(var i=0;i<teamsOption.teamNum;i++){
		if( teamsOption.teamData[i].name.toLowerCase() == name ){
			return teamsOption.teamData[i].number;
		}
	}
	return -1;
}

function getNumberByServiceName( name ){
	var name = name.toLowerCase();
	for(var i=0;i<teamsOption.serviceNum;i++){
		if( teamsOption.serviceData[i].toLowerCase() == name ){
			return i+1;
		}
	}
	return -1;
}

function getNumberByTypeName( name ){
	var name = name.toLowerCase();
	for(var i=0;i<2;i++){
		if( teamsOption.typeData[i].toLowerCase() == name ){
			return i;
		}
	}
	return -1;
}
